
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
void myStrcpy(char a[], int c,int m)
{
	for (int i = 0;i < c;i++)
	{
		if(i >=m-1 )
		printf("%c", a[i]);
	}
}

int main()
{
	char arr[50] = { 0 };
	char ch;
	int count = 0, m = 0;
	for (; (ch = getchar()) != '\n';)
	{
		arr[count] = ch;
		count++;
	}
	scanf("%d", &m);
	myStrcpy(arr,count,m);
	return 0;
}
